]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/test-theme: Use stage from mutter
authorJonas Ådahl <jadahl@gmail.com>
Thu, 9 Jul 2020 20:14:15 +0000 (22:14 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 13 Aug 2020 12:46:22 +0000 (12:46 +0000)
Clutter application style stages not supported anymore.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1359

src/st/test-theme.c

index 3fe0246c39c95e37e5cb7ebb845972b46a8d19ac..4b6f5d4fe241ab4b5d10c68e53e52d1683aed25f 100644 (file)
@@ -26,6 +26,7 @@
 #include <math.h>
 #include <string.h>
 #include <meta/main.h>
+#include <meta/meta-backend.h>
 
 static ClutterActor *stage;
 static StThemeNode *root;
@@ -533,6 +534,7 @@ test_inline_style (void)
 int
 main (int argc, char **argv)
 {
+  MetaBackend *backend;
   StTheme *theme;
   StThemeContext *context;
   PangoFontDescription *font_desc;
@@ -556,7 +558,8 @@ main (int argc, char **argv)
   theme = st_theme_new (file, NULL, NULL);
   g_object_unref (file);
 
-  stage = clutter_stage_new ();
+  backend = meta_get_backend ();
+  stage = meta_backend_get_stage (backend);
   context = st_theme_context_get_for_stage (CLUTTER_STAGE (stage));
   st_theme_context_set_theme (context, theme);